import type { Component } from 'solid-js';

import logo from './logo.svg';
import './App.scss';
import { Toaster } from 'solid-toast';
import { Router } from '@solidjs/router';
import routes from './routes';
import MainLayout from './pages/layout/MainLayout';

const base = import.meta.env.BASE_URL || '/';

const App: Component = () => {
  return (
    <>
      <Toaster position={'top-center'}></Toaster>
      <Router base={base} root={MainLayout}>
        {routes}
      </Router>
    </>
  );
};

export default App;
